package com.sk.bilibili.utils;

import org.springframework.stereotype.Component;

import java.util.UUID;

/**
 * @author 邵康
 * @date 2021/11/22 19:19
 */
public class NameCreator {

    public static String getName(int len){
        String str = UUID.randomUUID().toString().replaceAll("-", "");
        return str.substring(0,len);
    }

    public static String getName(){
        return getName(12);
    }

}
